﻿using JZNJ.RadioMonitorServer.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace JZNJ.RadioMonitorServer.App
{
    public partial class FrmDetail : Form
    {
        public FrmDetail()
        {
            InitializeComponent();
        }

        DrawPicture draw = new DrawPicture(); 

        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            InitVariable();
            draw.DrawCoordinate(e.Graphics, this.Width, this.Height, new Rectangle(0, 0, this.Width, this.Height));
        }

        //确定
        private void btn_OK_Click(object sender, EventArgs e)
        {
            PaintEventArgs pe = new PaintEventArgs(this.CreateGraphics(), this.ClientRectangle);
            draw.DrawBrokenLine(pe.Graphics);
        }

        //初始化界面
        private void InitVariable()
        {
            txt_StartFre.Text = Const.m_strStartFre;
            txt_EndFre.Text = Const.m_strEndFre;
            txt_Step.Text = Const.m_strStepFre;
        }
    }
}
